import request from '@/utils/request'

const baseUrl = '/api/performance-interview'

// 保存绩效面谈记录
export function savePerformanceInterview(data) {
    return request({
        url: `${baseUrl}/save`,
        method: 'post',
        data
    })
}

// 获取绩效面谈记录列表
export function getPerformanceInterviewList(params) {
    return request({
        url: `${baseUrl}/list`,
        method: 'get',
        params
    })
}

// 获取绩效面谈记录详情
export function getPerformanceInterviewDetail(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'get'
    })
}

// 更新绩效面谈记录
export function updatePerformanceInterview(data) {
    return request({
        url: `${baseUrl}/update`,
        method: 'put',
        data
    })
}

// 删除绩效面谈记录
export function deletePerformanceInterview(id) {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'delete'
    })
} 